﻿@model IEnumerable<Wicresoft.UnifyShow.Business.EventTypeModel>

<ul class="treeview" id="eventTree">
        @foreach (var t1 in (IEnumerable<string>)ViewData["itsnTier1"]) 
         {
            <li><span>@t1</span>
                <ul>
                    @foreach (var t2 in (IEnumerable<Wicresoft.UnifyShow.Business.EventTypeModel>)ViewData["itsnTier2"]) 
                    {
                        if (t2.TIER1 == t1)
                        {
                            <li class="Category"><span>@t2.TIER2</span>
                                <ul>
                                   @foreach (var item in Model)
                                   {
                                       if (item.TIER2 == t2.TIER2) 
                                       {
                                           <li>
                                               <span><a href="#@item.REQUEST_ID" class="node" data-id="@item.REQUEST_ID">@item.TIER3</a></span>
                                           </li>
                                       }
                                   }
                                </ul>
                             </li>
                         }
                    }
                </ul>
            </li>
         }
</ul>



         

